package com.example.aidemo.util;

import com.baidu.aip.imageclassify.AipImageClassify;
import org.json.JSONObject;

import java.util.HashMap;

public class SampleImg {


    public static void main(String[] args) {
        //设置APPID/AK/SK
        String APP_ID = "改成你的APPID";
        String API_KEY = "改成你的KEY";
        String SECRET_KEY = "改成你的SECRET_KEY";
        // 初始化一个AipImageClassify
        AipImageClassify client = new AipImageClassify(APP_ID, API_KEY, SECRET_KEY);

        // 调用接口
        String path = "C:\\Users\\65238\\Desktop\\project\\test\\cat.png";
        JSONObject res = client.advancedGeneral(path, new HashMap<String, String>());
        System.out.println(res.toString(2));

    }
}
